import homeRoutes from '@/routers/home/home';
export default [
    {
        path:'/register',
        name:'register',
        component:()=>import('@/views/Register.vue')
    },
    {
        path:'/login',
        name:'login',
        component:()=>import('@v/Login.vue')
    },{
        path:'/home',
        name:'home',
        component:()=>import('@v/Home.vue'),
        children:homeRoutes
    },{
        path:'/personcenter',
        name:'personcenter',
        component:()=>import('@/views/PersonalCenter.vue')
    },{
        path:'*',
        name:'notFound',
        component:()=>import('@v/NotFound.vue')
    },
    {
        path:'/',
        redirect:{
            name:'home'
        }
    }
]